package com.weilus;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MQMessage {
    public enum Type {
        TIME_OUT, UNKNOWN_SERVICE, BUSINESS_ERROR, UNKNOWN_API,CIRCUIT_BREAKER, UNAUTH,NONE
    }
    private String name;
    private String age;
    private Long delay;
    private Boolean ex;
    private Type type = Type.NONE;
    private String routingKey;
}
